
requirejs(['jquery', 'util', 'fancyBox', 'datatables', 'pagination', 'baiduTemplate'], function ($, util, fancyBox, dataTables, pagination, baiduTemplate) {

    $(function () {

        if (parent.frameOnload !== undefined) {
            parent.frameOnload();
        }



        $.post('?/WdminPage/ajax_list_customerData/', function (json) {
            var html = baidu.template('t:ct_list', {
                list: json
            });
            $('.dTable tbody').empty().html(html);
            util.dataTableLis();

        });

        //分页初始化
        $('.pagination-sm').twbsPagination({
            first: '首页',
            prev: '前页',
            next: '后页',
            last: '尾页',
            totalPages: 100,
            visiblepages: 6,
            onPageClick: function (event, page) {
                console.log(page);
            }
        });



    });

});